//
//  person_fansCell.m
//  K-Music
//
//  Created by LoGUYU on 16/1/15.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "person_fansCell.h"

@implementation person_fansCell



- (void)creatUI
{
    self.icon = [[UIImageView alloc] init];
    [self.contentView addSubview:self.icon];
    
    //歌手名
    self.titleName = [[UILabel alloc] init];
    self.titleName.textColor = RGB(244, 219, 182);
    self.titleName.font = [UIFont systemFontOfSize:18.0f];
    [self.contentView addSubview:self.titleName];
    
    self.singerLevelDesc = [[UILabel alloc] init];
    self.singerLevelDesc.textColor = RGB(244, 219, 182);
    self.singerLevelDesc.font = [UIFont systemFontOfSize:15.0f];
    [self.contentView addSubview:self.singerLevelDesc];
    
    self.fans_Attention = [[UILabel alloc] init];
    self.fans_Attention.font = [UIFont systemFontOfSize:15.0f];
    [self.contentView addSubview:self.fans_Attention];
    
    
    [self.icon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).with.offset(15);
        make.width.and.height.mas_equalTo(@60);
        make.centerY.equalTo(self.contentView);
    }];
    
    [self.titleName mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).with.offset(10);
        make.top.equalTo(self.contentView.mas_top).with.offset(20);
    }];
    
    [self.singerLevelDesc mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.icon.mas_right).with.offset(10);
        make.top.equalTo(self.titleName.mas_bottom).with.offset(8);
    }];
    
    [self.fans_Attention mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).with.offset(WIDTH/2);
        make.top.equalTo(self.titleName.mas_bottom).with.offset(8);
    }];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
